Swathi Fix for PR Review Team Analytics Dashboard - Main landing page gives a ‘Page not found’ Error.#4617
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
Hi Anusha, Thanks for the review. Accidentally I committed two files which were not part of this PR. I reverted those files. |
sayali-2308
left a comment
There was a problem hiding this comment.
Reviewer: Sayali Sable
Date: January 28, 2026
Branch Tested: Swathi_PR_Review_Team_Analytics_Dashboard
Testing Environment
- Frontend: localhost:5173
- Backend: Development branch (localhost:4500)
- Node.js: v20.19.4
Problem Fixed
Before this PR, the following URLs showed "Page not found" error:
- /pr-dashboard/overview
- /pr-dashboard/promotion-eligibility
- /pr-dashboard/top-reviewed-prs
- /pr-dashboard/details
Solution Implemented
Added 4 new route definitions in src/routes.jsx file:
- Line 903: Route for /pr-dashboard/overview (PRDashboardOverview component)
- Lines 904-908: Route for /pr-dashboard/promotion-eligibility (PRDashboardPromotionEligibility component)
- Lines 909-913: Route for /pr-dashboard/top-reviewed-prs (PRDashboardTopReviewedPRs component)
- Line 914: Route for /pr-dashboard/details (PRDashboardDetails component)
Testing Results
All 4 Routes Working
Tested all 4 URLs and confirmed pages load successfully without "Page not found" error:
- Overview Page - Loads correctly, displays PR metrics (Open PRs, Stale PRs, Avg Review Time)
- Promotion Eligibility Page - Loads correctly, displays promotion review table
- Top Reviewed PRs Page - Loads correctly, displays sorted list of PRs by review activity
- Details Page - Loads correctly, displays PR details with description and CI/CD status
Multi-Role Testing
Tested with 3 different user roles as required:
- Admin Account: All 4 routes load correctly
- Manager Account: All 4 routes load correctly
- Volunteer Account: All 4 routes load correctly
Code Changes Review
- Only 12 lines added to routes.jsx (+12 lines, 0 deletions)
- Clean implementation using ProtectedRoute wrapper
- Consistent with existing route patterns in the file
- All routes properly mapped to correct components
Findings
- All 4 routes now accessible without "Page not found" error
- Pages load across all user roles
- No console errors
- Routes follow existing code patterns
- Minimal, focused change - only adds necessary routes
- Note: "Failed to load Reviewers" message on promotion-eligibility page is a backend data issue, not related to this routing fix
Conclusion
PR successfully fixes the "Page not found" errors for all 4 PR Dashboard URLs. Routes are properly implemented and work across all user roles. This is a clean, focused fix that addresses the exact problem described.
b8a8e01
Anusha-Gali
left a comment
There was a problem hiding this comment.
I have re-reviewed the PR to approve it for merge.
…ighestGoodNetworkApp into Swathi_PR_Review_Team_Analytics_Dashboard
bf57c62
|
|
Thank you all, merging! |
…m_Analytics_Dashboard Swathi Fix for PR Review Team Analytics Dashboard - Main landing page gives a ‘Page not found’ Error.

















Description
PR Review Team Analytics Dashboard - Main landing page gives a ‘Page not found’ Error. And other pages from PR Analytics board were showing 'Page not Found' Error.
Related PRS (if any):
NA
…
Main changes explained:
Added routes for the following pages
…
How to test:
npm installand 'npm run start' to run this PR locallyScreenshots or videos of changes:
Note:
This PR is fix for 'Page not found' error. User should be able to land in respective pages.